package com.ld.security.auth.common.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.base.column.MapJson;
import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.LabelMap;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.auth.common.sys.constant.SysUserConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("sys_user")
@ApiModel("用户")
@Data
public class SysUserEntity  extends SuperEntity implements LabelMap

{




  @ApiModelProperty("密码")
  @SqlKey(SqlCondition.anon)
    private String password;





  @ApiModelProperty("账号")
  @SqlKey(SqlCondition.eq)
    private String username;





  @ApiModelProperty("昵称")
  @SqlKey(value = SqlCondition.eq)
    private String label;

  @ApiModelProperty("用户类型")
  @SqlKey(SqlCondition.eq)
  @LabelKeys
  private SysUserConstant.userType userType;

  @ApiModelProperty("部门")
  @SqlKey(SqlCondition.eq)
  @LabelKeys(SysDepEntity.class)
  private String depId;

  @ApiModelProperty("头像")
  @SqlKey(SqlCondition.eq)
  private String logo;

  @ApiModelProperty("介绍")
  @SqlKey(SqlCondition.eq)
  private String content;


  @ApiModelProperty("描述map")
  @SqlKey(SqlCondition.anon)
  private MapJson labelMap;



}
